package org.jeecg.modules.ws.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
import org.jeecg.modules.ws.entity.WsBondFile;
import org.jeecg.modules.ws.mapper.WsBondFileMapper;
import org.jeecg.modules.ws.service.IWsBondFileService;
import org.springframework.stereotype.Service;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;

import java.util.Collections;
import java.util.List;

/**
 * @Description: 债卷附件
 * @Author: jeecg-boot
 * @Date:   2025-03-28
 * @Version: V1.0
 */
@Service
public class WsBondFileServiceImpl extends ServiceImpl<WsBondFileMapper, WsBondFile> implements IWsBondFileService {

    @Override
    public List<WsBondFile> queryByBondId(String bondId) {
        LambdaQueryWrapper<WsBondFile> query = Wrappers.lambdaQuery(WsBondFile.class);
        query.eq(WsBondFile::getBondId,bondId);
        return list(query);
    }
}
